import instance from '@/utils/request'

// 登录接口
export const loginApi = (data) => {
  return instance.post('/sys/login', data)
}

// 获取用户信息接口
export const getUserInfoApi = () => {
  return instance.get('/sys/profile')
}

// 修改用户密码
export const changePasswordApi = (data) => {
  return instance.put('/sys/user/updatePass', data)
}
